package com.xy.dyson.controller;

import com.xy.dyson.entity.SyntheticRelation;
import com.xy.dyson.service.SyntheticRelationService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (SyntheticRelation)表控制层
 *
 * @author XY
 * @since 2021-01-28 16:24:36
 */
@RestController
@RequestMapping("syntheticRelation")
public class SyntheticRelationController {
    /**
     * 服务对象
     */
    @Resource
    private SyntheticRelationService syntheticRelationService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public SyntheticRelation selectOne(Integer id) {
        return this.syntheticRelationService.queryById(id);
    }

}